import { postRequest, getRequest, deleteRequest } from '/@/lib/axios';

// 查询车队信息列表
export function listTeamInfo(query) {
  return getRequest('/TeamSys/teamInfo/list', query)
}

// 查询车队信息详细
export function getTeamInfo(teamId) {
  return getRequest(`/TeamSys/teamInfo/${teamId}`)
}

// 新增车队信息
export function addTeamInfo(data) {
  return postRequest('/TeamSys/teamInfo', data)
}

// 修改车队信息
export function updateTeamInfo(data) {
  return postRequest('/TeamSys/teamInfo', data)
}

// 删除车队信息
export function delTeamInfo(teamId) {
  return deleteRequest(`/TeamSys/teamInfo/${teamId}`)
}
